package com.dy.design_pattern_study.flyweight_pattern.dome1;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-23
 * @Content 初级版本的享元模式 -共享模式
 */
public class WebSite {
    private String name;

    public WebSite(String name) {
        this.name = name;
    }
    public void use(){
        System.out.println("网站分类：" + name);
    }
}
